import request from '@/utils/request'

// 查询园林考核反馈列表
export function listExamineFeedback(query) {
  return request({
    url: '/comp/examineFeedback/list',
    method: 'get',
    params: query
  })
}

// 查询园林考核反馈详细
export function getExamineFeedback(id) {
  return request({
    url: '/comp/examineFeedback/' + id,
    method: 'get'
  })
}

// 新增园林考核反馈
export function addExamineFeedback(data) {
  return request({
    url: '/comp/examineFeedback',
    method: 'post',
    data: data
  })
}

// 修改园林考核反馈
export function updateExamineFeedback(data) {
  return request({
    url: '/comp/examineFeedback',
    method: 'put',
    data: data
  })
}

// 删除园林考核反馈
export function delExamineFeedback(id) {
  return request({
    url: '/comp/examineFeedback/' + id,
    method: 'delete'
  })
}

// 查询园林考核总扣分
export function getSumBuckleScore(reportId) {
  return request({
    url: '/comp/examineFeedback/sumBuckleScore/' + reportId,
    method: 'get'
  })
}
